<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>个人行程</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">  
    <link href="css/mui.min.css" rel="stylesheet"/>
    <link href="css/style.css" rel="stylesheet"/>
    <link href="css/iconfont.css" rel="stylesheet"/>
    <style type="text/css">
    .mui-control-content {
		background-color: white;
		min-height: 215px;
	}
	.mui-control-content .mui-loading {
		margin-top: 50px;
	}
	.mui-pull-right{
		text-align: right;
	}
	.mui-table-view:after{
		height: 1px !important;
	}
	.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{
		border-bottom: 2px solid #007AFF !important;
	}
    </style>
</head>
<body>
	<header  class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">个人行程</h1>
		<a class="mui-icon iconfont icon-qiehuanzhanghao mui-pull-right" href="setting.html"></a>
	</header>
	<div class="mui-content">
		<span class="mui-content-head">世界骨科大会个人行程</span>
		<div id="slider" class="mui-slider">
			<div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
				<a class="mui-control-item" href="#item1mobile">
				参会人1
				</a>
				<a class="mui-control-item" href="#item2mobile">
				参会人2
				</a>
				<a class="mui-control-item" href="#item3mobile">
				参会人3
				</a>
			</div>
			<!--<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-4"></div>-->
			<div class="mui-slider-group">
				<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
					<div id="scroll1" class="mui-scroll-wrapper">
						<div class="mui-scroll">
							<ul class="mui-table-view">
								<li class="mui-table-view-cell">
									2016年10月1日
								</li>
								<li class="mui-table-view-cell">
									机票
								</li>
								<li class="mui-table-view-cell">
									
									<span class="mui-pull-left">海南航空HU7609</span><span class="mui-pull-right">13:00-16:00<br />北京-上海</span>
								</li>
								<li class="mui-table-view-cell">
									酒店
								</li>
								<li class="mui-table-view-cell">	
									<span class="mui-pull-left">上海金都大酒店</span><span class="mui-pull-right">标准间<br />入住时间10.1-10.7</span>
								</li>
							</ul>
						</div>
					</div>
				</div>
				<div id="item2mobile" class="mui-slider-item mui-control-content">
					<div id="scroll2" class="mui-scroll-wrapper">
						<div class="mui-scroll">
							<div class="mui-loading">
								<div class="mui-spinner">
								</div>
							</div>
						</div>
					</div>
				</div>
				<div id="item3mobile" class="mui-slider-item mui-control-content">
					<div id="scroll3" class="mui-scroll-wrapper">
						<div class="mui-scroll">
							<div class="mui-loading">
								<div class="mui-spinner">
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="js/mui.min.js"></script>
	<script>
		mui.init({
			swipeBack: false
		});
		(function($) {
			$('.mui-scroll-wrapper').scroll({
				indicators: true //是否显示滚动条
			});
			var controls = document.getElementById("sliderSegmentedControl");
			var html2 = '<ul class="mui-table-view"><li class="mui-table-view-cell">2016年10月2日</li><li class="mui-table-view-cell">机票</li><li class="mui-table-view-cell"><span class="mui-pull-left">海南航空HU7609</span><span class="mui-pull-right">13:00-16:00<br />北京-上海</span></li><li class="mui-table-view-cell">酒店</li><li class="mui-table-view-cell"><span class="mui-pull-left">上海金都大酒店</span><span class="mui-pull-right">标准间<br />入住时间10.1-10.7</span></li></ul>';
			var html3 = '<ul class="mui-table-view"><li class="mui-table-view-cell">2016年10月3日</li><li class="mui-table-view-cell">机票</li><li class="mui-table-view-cell"><span class="mui-pull-left">海南航空HU7609</span><span class="mui-pull-right">13:00-16:00<br />北京-上海</span></li><li class="mui-table-view-cell">酒店</li><li class="mui-table-view-cell"><span class="mui-pull-left">上海金都大酒店</span><span class="mui-pull-right">标准间<br />入住时间10.1-10.7</span></li></ul>';
			var item2 = document.getElementById('item2mobile');
			var item3 = document.getElementById('item3mobile');
			controls.querySelector('.mui-control-item').classList.add('mui-active');
			document.getElementById('slider').addEventListener('slide', function(e) {
				if (e.detail.slideNumber === 1) {
					if (item2.querySelector('.mui-loading')) {
						setTimeout(function() {
							item2.querySelector('.mui-scroll').innerHTML = html2;
						}, 500);
					}
				} else if (e.detail.slideNumber === 2) {
					if (item3.querySelector('.mui-loading')) {
						setTimeout(function() {
							item3.querySelector('.mui-scroll').innerHTML = html3;
						}, 500);
					}
				}
			});
		})(mui);
	</script>
	</body>

</html>